package com.clwl.supervise.superviseapp.entity.risk.saveEntity;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.Data;

import java.util.List;

/**
 * 动态风险评分
 */
@Data
public class RiskDynamicVo {

    /**
     * 执法人员1
     */
    private Long scorePerson1Id;

    /**
     * 执法人员2
     */
    private Long scorePerson2Id;

    /**
     * 异常经营状态
     */
    private String manageStatus;

    /**
     * 评分订单
     */
    private String checkId;

    /**
     * 联系电话
     */
    private String concatPhone;
    /**
     * 联系ren
     */
    private String concat;
    /**
     * 法人
     */
    private String legalPerson;

    /**
     * 执行时间
     */
    private String checkTime;

    /**
     * 总分数
     */
    private Double totalScore;

    /**
     * 异常核查时间
     */
    private String abnormalTime;

    /**
     * 异常原因
     */
    private String abnormalReason;

    /**
     * 异常情况核查记录
     */
    private String abnormalCheckRecord;

     /**
     * 延期定级：0是，1否
     */
    private String delayRating;

     /**
     * 其他问题
     */
    private String otherProblem;
    /**
     * 处理结果:1- 符合,2-基本符合,3-不符合;4-其他
     */
    private String checkResults;
    /**
     * 处理结果:1-通过,2-责令整改,3-调查处理
     */
    private String copeResult;


    /**
     * 整改日期
     */
    private String resultTime;



    /**
     * 评分项
     */
    private List<JgStandadMapVo> projectList;


    @Data
    public class JgStandadMapVo {

        @JSONField(name = "TEMPLATE_NAME")
        private String templateName;

        @JSONField(name = "SERIAL_NUM")
        private Double serialNum;

        @JSONField(name = "STANDARD_NAME")
        private String standardName;

        @JSONField(name = "ID")
        private Long id;


        @JSONField(name = "contentList")
        private List<ContentList> contentList;

        @JSONField(name = "TEMPLATE_ID")
        private Long templateId;

        @JSONField(name = "SUP_CATEGORY")
        private String supCategory;

        @JSONField(name = "SUP_PROCESS")
        private String supProcess;

        /**
         * 销售业态id
         */
        @JSONField(name = "SPXS_ID")
        private Long spxsId;

        /**
         * 餐饮业态id
         */
        @JSONField(name = "CYFW_ID")
        private Long cyfwId;

        /**
         * 生产食品类别id
         */
        @JSONField(name = "SPSC_LB_ID")
        private Long spscLbId;

        /**
         * 生产食品子类id
         */
        @JSONField(name = "SPSC_LB_ZL_ID")
        private Long spscLbZlId;

        /**
         * 特殊食品类别id
         */
        @JSONField(name = "TSSP_LB_ID")
        private Long tsspLbId;

        /**
         * 特殊食品子类id
         */
        @JSONField(name = "TSSP_LB_ZL_ID")
        private Long tsspLbZlId;
    }

// ContentList.java
    @Data
    public class ContentList {

        @JSONField(name = "SCORE")
        private Double score;

        @JSONField(name = "checkMissingList")
        private List<CheckMissingList> checkMissingList;

        @JSONField(name = "CHECK_GUIDE")
        private String checkGuide;

        @JSONField(name = "IMPORTENT_ITEM")
        private String importentItem;

        @JSONField(name = "STANDARD_ID")
        private Long standardId;

        @JSONField(name = "STAT")
        private String stat;

        @JSONField(name = "SERIAL_NUM")
        private Double serialNum;

        @JSONField(name = "CHECK_BASIS")
        private String checkBasis;

        @JSONField(name = "checkProblemList")
        private List<CheckProblemList> checkProblemList;

        @JSONField(name = "CHECK_PROBLEM")
        private String checkProblem;

        @JSONField(name = "ID")
        private Long id;

        @JSONField(name = "SELECTION")
        private String selection;

        @JSONField(name = "CHECK_CONTENT")
        private String checkContent;

        @JSONField(name = "CHECK_METHOD")
        private String checkMethod;

        @JSONField(name = "MISSING_ITEM")
        private String missingItem;

        /**
         * 备注
         */
        @JSONField(name = "REMARK")
        private String remark;


        @JSONField(name = "MISSING_ITEM_CONTENT")
        private String missingItemContent;
        /**
         * 问题描述（否）内容
         */
        @JSONField(name = "PROBLEM_CONTENT")
        private String problemContent;
        /**
         * 问题照片url
         */
        @JSONField(name = "PROBLEM_FILE")
        private String problemFile;

    }

// CheckProblemList.java

    @Data
    public class CheckProblemList {

        @JSONField(name = "DELETE_FLAG")
        private Long deleteFlag;

        @JSONField(name = "ID")
        private Long id;

        @JSONField(name = "DESCRIBE")
        private String describe;

        @JSONField(name = "CONTENT_ID")
        private double contentId;

    }
    @Data
    public class CheckMissingList {

        @JSONField(name = "DELETE_FLAG")
        private Long deleteFlag;

        @JSONField(name = "ID")
        private Long id;

        @JSONField(name = "DESCRIBE")
        private String describe;

        @JSONField(name = "CONTENT_ID")
        private double contentId;
    }
}
